package com.alibaba.algo.cooperation.usercomponent.service.user;

import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SysEmployeeGroupDeleteRequestVO;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SysEmployeeGroupPageRequestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 类SysEmployeeGroupService.java的实现描述：用户组关系表 service
 *
 * @author fan.tianpeng 2021-05-06 20:30:48
 */
@FeignClient(url="${feign.userCenterUrl:}", value = "usercenter-service", contextId = "usercenter-app")
public interface SysEmployeeGroupService {

    /**
     * 查询用户组下的员工列表
     *
     * @param vo 入参
     * @return 员工列表
     */
    @RequestMapping(value = "/sysEmployeeGroup/selectPage", method = RequestMethod.POST)
    BaseResult selectEmployeeGroupPage(@RequestBody SysEmployeeGroupPageRequestVO vo);

    /**
     * 删除用户组的员工
     *
     * @param vo 入参
     * @return 删除结果
     */
    @RequestMapping(value = "/sysEmployeeGroup/delete", method = RequestMethod.POST)
    BaseResult singleDelete(@RequestBody SysEmployeeGroupDeleteRequestVO vo);

}
